<?php /* Smarty version 2.6.26, created on 2010-05-08 16:04:46
         compiled from admin/live.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="webapps/styles/table_dis.css" />
<link type="text/css" rel="stylesheet" href="webapps/admin/stylesheets/admin.css" />
<script type="text/javascript" src="webapps/scripts/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	//$("#tab tr").hover(
					   //function(){$(this).addClass("over");}),function(){$(this).removeClass("over");};
					   //function(){$(this).css("background","red");})
	$("#tab tr").hover(function(){$(this).css("background","#DEEBFC");},function(){$(this).css("background","#FFF");});
	
});
</script>
<title><?php echo $this->_tpl_vars['title']; ?>
</title>
</head>

<body>
<table width="100%" cellpadding="1" cellspacing="1" border="0" id="tab">
  <tr>
    <th colspan="4" style="background-color:#4F9AD0;">直播管理</th>
  </tr>
  <?php unset($this->_sections['tmp_res_live']);
$this->_sections['tmp_res_live']['name'] = 'tmp_res_live';
$this->_sections['tmp_res_live']['loop'] = is_array($_loop=$this->_tpl_vars['res_live']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['tmp_res_live']['show'] = true;
$this->_sections['tmp_res_live']['max'] = $this->_sections['tmp_res_live']['loop'];
$this->_sections['tmp_res_live']['step'] = 1;
$this->_sections['tmp_res_live']['start'] = $this->_sections['tmp_res_live']['step'] > 0 ? 0 : $this->_sections['tmp_res_live']['loop']-1;
if ($this->_sections['tmp_res_live']['show']) {
    $this->_sections['tmp_res_live']['total'] = $this->_sections['tmp_res_live']['loop'];
    if ($this->_sections['tmp_res_live']['total'] == 0)
        $this->_sections['tmp_res_live']['show'] = false;
} else
    $this->_sections['tmp_res_live']['total'] = 0;
if ($this->_sections['tmp_res_live']['show']):

            for ($this->_sections['tmp_res_live']['index'] = $this->_sections['tmp_res_live']['start'], $this->_sections['tmp_res_live']['iteration'] = 1;
                 $this->_sections['tmp_res_live']['iteration'] <= $this->_sections['tmp_res_live']['total'];
                 $this->_sections['tmp_res_live']['index'] += $this->_sections['tmp_res_live']['step'], $this->_sections['tmp_res_live']['iteration']++):
$this->_sections['tmp_res_live']['rownum'] = $this->_sections['tmp_res_live']['iteration'];
$this->_sections['tmp_res_live']['index_prev'] = $this->_sections['tmp_res_live']['index'] - $this->_sections['tmp_res_live']['step'];
$this->_sections['tmp_res_live']['index_next'] = $this->_sections['tmp_res_live']['index'] + $this->_sections['tmp_res_live']['step'];
$this->_sections['tmp_res_live']['first']      = ($this->_sections['tmp_res_live']['iteration'] == 1);
$this->_sections['tmp_res_live']['last']       = ($this->_sections['tmp_res_live']['iteration'] == $this->_sections['tmp_res_live']['total']);
?>
  <tr>
    <td width="10%">频道<?php echo $this->_tpl_vars['res_live'][$this->_sections['tmp_res_live']['index']]['id']; ?>
</td>
    <td width="50%"><?php echo $this->_tpl_vars['res_live'][$this->_sections['tmp_res_live']['index']]['content']; ?>
</td>
    <td width="15%">当前频道状态：<span style="color:red;"><?php echo $this->_tpl_vars['res_live'][$this->_sections['tmp_res_live']['index']]['open_state']; ?>
</span></td>
    <td style="padding-left:10px;"><a href="index.php?controller=admin&action=editLive&id=<?php echo $this->_tpl_vars['res_live'][$this->_sections['tmp_res_live']['index']]['id']; ?>
" target="_self">编辑频道</a></td>
  </tr>
  <?php endfor; endif; ?>
</table>
</body>
</html>